<template>
  <div>
    <v-distpicker province="江苏省" city="苏州市" area="昆山市" @selected="selected" v-show="addInp"/>
  </div>
</template>

<script>
import VDistpicker from "v-distpicker";
export default {
    name: "province",
    data(){
      return {
        components: {VDistpicker},
        addInp:true
      };
  },
  methods: {
    selected(data){
      this.province= data.province.value;
      this.city=data.city.value;
      this.area=data.area.value;
      console.log("省:"+this.province+"               市:"+this.city+"                   区/(县):"+this.area);
    }
  }

}
</script>

<style scoped>

</style>
